<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div>民族：<span id="mingZu"></span></div>
		<div>肤色：<span id="fuSe"></span></div>
		<div>性别：<span id="xingBie"></span></div>
	</body>
	<script>
		function Person(){
			this.Nation="汉族";
			this.Skin="黄色";
		}
		Person.prototype.showNation=function(){
			return this.Nation;
		}
		Person.prototype.showSkin=function(){
			return this.Skin;
		}
		var a=new Person();
		function Woman(){
			this.Gender="女";
		}
		Woman.prototype=a;
		Woman.prototype.showGender=function(){
			return this.Gender;
		}
		var b=new Woman();
		document.getElementById("mingZu").innerHTML=b.showNation();
		document.getElementById("fuSe").innerHTML=b.showSkin();
		document.getElementById("xingBie").innerHTML=b.showGender();
	</script>
</html>
